package com.hiultra.archive.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hiultra.common.annotation.Excel;
import com.hiultra.common.core.domain.BaseEntity;
import com.hiultra.common.core.domain.entity.ArcStorehouse;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 报警对象 arc_alarm
 *
 * @author ls
 * @date 2022-07-28
 */
public class ArcAlarm extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 报警Id
     */
    private Long alarmId;

    /**
     * 报警类型
     */
    @Excel(name = "报警类型")
    private String alarmType;

    /**
     * 报警内容
     */
    @Excel(name = "报警内容")
    private String alarmContent;

    /**
     * 报警时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "报警时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date alarmTime;
    /**
     * 库房id
     */
    @Excel(name = "库房id")
    private Long storehouseId;
    private ArcStorehouse storehouse;

    public Long getStorehouseId() {
        return storehouseId;
    }

    public void setStorehouseId(Long storehouseId) {
        this.storehouseId = storehouseId;
    }

    public ArcStorehouse getStorehouse() {
        return storehouse;
    }

    public void setStorehouse(ArcStorehouse storehouse) {
        this.storehouse = storehouse;
    }

    public void setAlarmId(Long alarmId) {
        this.alarmId = alarmId;
    }

    public Long getAlarmId() {
        return alarmId;
    }

    public void setAlarmType(String alarmType) {
        this.alarmType = alarmType;
    }

    public String getAlarmType() {
        return alarmType;
    }

    public void setAlarmContent(String alarmContent) {
        this.alarmContent = alarmContent;
    }

    public String getAlarmContent() {
        return alarmContent;
    }

    public void setAlarmTime(Date alarmTime) {
        this.alarmTime = alarmTime;
    }

    public Date getAlarmTime() {
        return alarmTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("alarmId", getAlarmId())
                .append("alarmType", getAlarmType())
                .append("alarmContent", getAlarmContent())
                .append("alarmTime", getAlarmTime())
                .toString();
    }
}
